-
Notifications
You must be signed in to change notification settings - Fork 383
Replace tox
with pytest
and Makefile
, cleanup in docs/Makefile
#669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
d073d5d
to
60df5a0
Compare
docs/Makefile
tox
with pytest
and Makefile
, cleanup in docs/Makefile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great cleanup ✨
fd3310d
to
8e99721
Compare
… 'restructuredtext'}`."
12c99e8
to
37d5537
Compare
Makefile
Outdated
@@ -1,56 +1,48 @@ | |||
RESET_COLOR=\033[0m | |||
GREEN_COLOR=\033[32;01m | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: remove that newline
printf "\rWaiting for Splunk for %s seconds..." $$i; \ | ||
sleep 1; \ | ||
done | ||
.PHONY: docker-start |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: add newline before this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't wait for us finally dropping py3.7, I'll be adding mbake
to dev deps so fast lol
Makefile
Outdated
.PHONY: docker-ensure-up | ||
docker-ensure-up: | ||
@for i in `seq 0 180`; do \ | ||
if docker exec -it $(CONTAINER_NAME) /sbin/checkstate.sh &> /dev/null; then \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This command is really bad and i have been frustrated with it (while using podman), since it does not differentiate between errors returned by docker
/shell
and checkstate.sh
errors.
if docker exec -it $(CONTAINER_NAME) /sbin/checkstate.sh &> /dev/null; then \ | |
if docker exec -it $(CONTAINER_NAME) /bin/bash -c "/sbin/checkstate.sh &> /dev/null"; then \ |
This way you at least get an error that docker is not in $PATH
and users will act accordingly (edit MakeFile
to use podman or just do not use docker-ensure-up
, instead of endless waiting).
[mateusz@MPOLIWCZ-M-3NJ6 splunk-sdk-python ]$ make docker-ensure-up
/bin/sh: docker: command not found
Waiting for Splunk for 0 seconds...^[[A/bin/sh: docker: command not found
Waiting for Splunk for 1 seconds.../bin/sh: docker: command not found
Waiting for Splunk for 2 seconds.../bin/sh: docker: command not found
Waiting for Splunk for 3 seconds.../bin/sh: docker: command not found
Waiting for Splunk for 4 seconds.../bin/sh: docker: command not found
Still not ideal, but at least the error is visible.
TODO: Verify I replaced all tox usages with alternatives, update docs
Confusingly
tox
is now a psuedo-Makefile, lists project dependencies, runs an almost random assortment of scripts and whatever else. I want to bring order to this chaos.I also want to remove all the commands we don't use in docs' Makefile. Maybe move it to the main Makefile if possible.